﻿<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="upload page.aspx.vb" Inherits="upload_page" title="CrIcKet-Upload Image" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">

        .style1
        {
            font-size: large;
            color: #0066FF;
        }
        .style2
        {
            width: 124px;
            height: 18px;
        }
        .style3
        {
            height: 18px;
        }
        .style4
        {
            width: 124px;
            height: 23px;
        }
        .style5
        {
            height: 23px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <center>
        <span class="style1">Upload Image<br />
        </span><br />
    <table width="90%" class="Table" border="0">
           
        <tr>
            <td align="right" valign="top" class="style4">
                <asp:Label ID="lblUserName" runat="server" Text="Image Title :" 
                    CssClass="Caption"></asp:Label>
            </td>
            <td align="left" class="style5" valign="top">
                <asp:TextBox ID="TextBox1" runat="server" TabIndex="1"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="TextBox1" ErrorMessage="*" ValidationGroup="a"></asp:RequiredFieldValidator>
                <br />
                (ex. t20,worldcup,sachin)</td>
        </tr> 
             
        <tr>
            <td align="right" valign="top" style="width: 124px">
            
                <asp:Label ID="lblPassword" st runat="server" Text="Description :" 
                    CssClass="Caption"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine" Height="75px" 
                    TabIndex="2"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="TextBox2" ErrorMessage="*" ValidationGroup="a"></asp:RequiredFieldValidator>
            </td>
        </tr>

        
        <tr>
            <td align="right" valign="top" style="width: 124px">
                <asp:Label ID="lblRetypePassword" runat="server" Text="Category :" 
                    CssClass="Caption"></asp:Label>
            </td>
            <td align="left">
                <asp:DropDownList ID="DropDownList1" runat="server" 
                    DataSourceID="SqlDataSource1" DataTextField="name" DataValueField="categoryid" 
                    Height="20px" Width="132px" TabIndex="3">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True" 
                    ProviderName="System.Data.SqlClient" 
                    SelectCommand="SELECT [name], [categoryid] FROM [category]">
                </asp:SqlDataSource>
            </td>
        </tr>

       
        <tr>
            <td align="right" valign="top" class="style2" >
                <asp:Label ID="lblGender" runat="server" Text="Select Picture :" 
                    CssClass="Caption"></asp:Label>
            </td>
            <td align="left" class="style3">
                <asp:FileUpload ID="FileUpload1" runat="server" TabIndex="4" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="FileUpload1" ErrorMessage="*" ValidationGroup="a"></asp:RequiredFieldValidator>
                <br />
                * only .jpg and .gif allowed</td>
        </tr>

        
        <tr>
            <td style="height:10px">
            </td>
            <td style="height:10px">
            </td>
        </tr>
        <tr>
            <td style="height:10px" colspan=2>
                <asp:Label ID="Label1" runat="server" style="color: #FF0000"></asp:Label>
            </td>
            
        </tr>
        <tr>
            <td colspan="2" align ="center">
            <table>
                <tr>
                    <td style="width:15%" align="right">
                        <asp:Button ID="btnSubmit" runat="server" Text="Upload" CssClass="Actions" 
                            TabIndex="5" ValidationGroup="a"/>
                    </td>
                    <td style="width:15%" align="left">
                        <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="Actions" 
                            TabIndex="6" CausesValidation="False"/>
                    </td>
                </tr>
            </table>
            </td>
        </tr>
    </table>
    
    
    
    </center>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>

